from collections import deque

queue = deque(maxlen=50)
for i in range(100):
    queue.append(i)
    # print(queue)
print(queue.popleft())
print(len(queue))